#include<iostream>
#include<cstdio>
#include<vector>
using namespace std;
string num1,num2;
vector<int>N1,N2,Ans;
int main()
{
	//freopen("add.in","r",stdin);
	//freopen("add.out","w",stdout);
	ios::sync_with_stdio(false);
	cin>>num1>>num2;
	int i,Max=max(num1.length(),num2.length());
	N1.resize(Max,0);N2.resize(Max,0);Ans.resize(1,0);
	for(i=1;i<=num1.length();i++)N1[i-1]=(num1[num1.length()-i]-'0');
	for(i=1;i<=num2.length();i++)N2[i-1]=(num2[num2.length()-i]-'0');
	for(i=0;i<Max;i++){
		Ans.push_back((N1[i]+N2[i]+Ans[i])/10);
		Ans[i]=(N1[i]+N2[i]+Ans[i])%10;
	}
	if(Ans[Ans.size()-1]==0)Ans.pop_back();
	for(i=Ans.size()-1;i>=0;i--)cout<<Ans[i];
	return 0;
}
